package Events.gui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Color;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.SwingConstants;


public class setupPassengers extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					setupPassengers frame = new setupPassengers();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public setupPassengers() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 550, 400);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnFile = new JMenu("File");
		menuBar.add(mnFile);
		
		JMenuItem mntmNewGame = new JMenuItem("New Game");
		mnFile.add(mntmNewGame);
		
		JMenuItem mntmExit = new JMenuItem("Exit ");
		mnFile.add(mntmExit);
		
		JMenu mnHelp = new JMenu("Help");
		menuBar.add(mnHelp);
		
		JMenuItem mntmHelpContents = new JMenuItem("Help Contents");
		mnHelp.add(mntmHelpContents);
		
		JMenuItem mntmAboutOrbitalTrail = new JMenuItem("About Orbital Trail");
		mnHelp.add(mntmAboutOrbitalTrail);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPlayerName = new JLabel("Passenger One:");
		lblPlayerName.setHorizontalAlignment(SwingConstants.RIGHT);
		lblPlayerName.setBounds(83, 71, 89, 14);
		contentPane.add(lblPlayerName);
		
		JTextField txtenterName = new JTextField();
		txtenterName.setForeground(Color.GRAY);
		txtenterName.setText("[Enter Name]");
		txtenterName.setBounds(179, 68, 226, 20);
		contentPane.add(txtenterName);
		txtenterName.setColumns(10);
		
		JButton btnCancel = new JButton("Cancel");
		btnCancel.setBounds(285, 282, 89, 23);
		contentPane.add(btnCancel);
		
		JButton btnNext = new JButton("Next");
		btnNext.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
			}
		});
		btnNext.setBounds(172, 282, 89, 23);
		contentPane.add(btnNext);
		
		JLabel lblSecondPassengersName = new JLabel("Passenger Two:");
		lblSecondPassengersName.setHorizontalAlignment(SwingConstants.RIGHT);
		lblSecondPassengersName.setBounds(83, 111, 89, 14);
		contentPane.add(lblSecondPassengersName);
		
		textField = new JTextField();
		textField.setText("[Enter Name]");
		textField.setForeground(Color.GRAY);
		textField.setColumns(10);
		textField.setBounds(179, 108, 226, 20);
		contentPane.add(textField);
		
		JLabel lblPassengerThree = new JLabel("Passenger Three:");
		lblPassengerThree.setHorizontalAlignment(SwingConstants.RIGHT);
		lblPassengerThree.setBounds(83, 154, 89, 14);
		contentPane.add(lblPassengerThree);
		
		textField_1 = new JTextField();
		textField_1.setText("[Enter Name]");
		textField_1.setForeground(Color.GRAY);
		textField_1.setColumns(10);
		textField_1.setBounds(179, 151, 226, 20);
		contentPane.add(textField_1);
		
		JLabel lblPassengerFour = new JLabel("Passenger Four:");
		lblPassengerFour.setHorizontalAlignment(SwingConstants.RIGHT);
		lblPassengerFour.setBounds(83, 194, 89, 14);
		contentPane.add(lblPassengerFour);
		
		textField_2 = new JTextField();
		textField_2.setText("[Enter Name]");
		textField_2.setForeground(Color.GRAY);
		textField_2.setColumns(10);
		textField_2.setBounds(179, 191, 226, 20);
		contentPane.add(textField_2);
		
		JLabel lblCreatePassengers = new JLabel("Create Passengers");
		lblCreatePassengers.setHorizontalAlignment(SwingConstants.CENTER);
		lblCreatePassengers.setBounds(147, 23, 227, 14);
		contentPane.add(lblCreatePassengers);
	}

}
